import os
def get_log_path():
    # 'D:\pythonpoject\pythonProject\autoTest_ecshop\logs'

    # 获取当前文件所在的目录路径
    current_directory = os.path.dirname(__file__)

    # return os.path.join(current_directory, 'logs')
    # 获取当前文件的上一级目录路径
    parent_directory = os.path.dirname(current_directory)

    # 构建logs文件夹的路径
    logs_directory = os.path.join(parent_directory, 'logs')

    return logs_directory

def get_yaml_path(filename):
    rootDir = os.path.dirname(os.path.dirname(__file__))
    return os.path.join(rootDir,"data",filename)


if __name__ == "__main__":
    # print(log_path)
    print(get_yaml_path("login.yaml"))


# log_path = get_log_path()
